package com.cgl.service;

import com.cgl.pojo.Article;

import java.util.HashMap;
import java.util.List;

public interface ArticleService {
    int addArticle(Article article);
    int addArticleByDraft(Article article);
    List<Article> getArticl(int pageIndex,int pageSize);
    List<Article> getDraft(int pageIndex,int pageSize);
    int getAllArticleCount();
    int getAllDraftCount();
    Article getArticleById(String id);
    List<Article> getArticleByLast(int pageIndex,int pageSize);
    Boolean addviewCount(String id);
    Boolean addLikeCount(String userid,String id);
    HashMap<String,Object> getInfo();
    List<Article> getArticleRank();
    List<Article> getArticleLastRank();
    List<Article> getArticleLikeRank();
    List<Article> getAllArticle(int pageIndex,int pageSize);
    int deleteArticle(String id);
    int updataArticle(Article article);
}
